import $http from '@/ajax/http.js';

export const index_city = {
	data() {
		return {
			incomes:[]
		}
	},
	onLoad(){
		this.indexData();
	},
	methods: {
		indexData() {
			$http.request({
				url: "/city/index/getIncomeAndDeviceNum",
				method: 'GET'
			}).then((res) => {
				console.log(res, '首页数据');
				this.incomes = res
			})
		}
	}
}